package com.wl.dao;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.wl.model.Account;
import com.wl.model.Comment;
import com.wl.utils.PageUtil;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CommentDao extends BaseMapper<Comment> {

    public List<Comment> commentList(@Param("page") Integer page,
                                     @Param("pageSize") Integer pageSize,
                                     @Param("userId") Long userId);

    List<Comment> getLimitComment(PageUtil pageUtil);

    Integer getCountComment();

    List<Comment> findByComment(Comment comment);

}
